package br.ufc.minijavaufc.ast;

import br.ufc.minijavaufc.visitor.TypeVisitor;
import br.ufc.minijavaufc.visitor.Visitor;

public class MainClass {
	
	public Identifier classIdentifier, argIdentifier;
	public Statement statement;

	public MainClass(Identifier classIdentifier, Identifier argIdentifier, Statement statement) {
		super();
		this.classIdentifier = classIdentifier;
		this.argIdentifier = argIdentifier;
		this.statement = statement;
	}

	public void accept(Visitor visitor){
		visitor.visit(this);
	}
	
	public Type accept(TypeVisitor visitor) {
		return visitor.visit(this);
	}

}
